import {HTTP} from '../utils/http'

class AboutModel extends HTTP{
  // 线下活动
  index(current,size){
    return this.request({
      url: 'activity/index',
      data: {
        'size': size || 4,
        'current': current || 1,
      }
    })
  }
// 新课推荐
  courseList(current,size){
    return this.request({
      url: 'course/recommend',
      data: {
        'size': size || 3,
        'current': current || 1,
      }
    })
  }
  // 精品好课
  classIndex(rcmdSize,current,size){
    return this.request({
      url: 'college/index',
      data: {
        'rcmdSize': rcmdSize || 2,
        'plainSize': size || 10,
        'current': current || 1,
        'rcmdTopSize':2
      }
    })
  }

  classindex(rcmdSize,current,size){
    return this.request({
      url: 'college/index',
      data: {
        'rcmdSize': rcmdSize || 2,
        'plainSize': size || 10,
        'current': current || 1,
      }
    })
  }
  //banner
  banner(){
    return this.request({
      url:'index/applet/banner',
      data:{
      }
    })
  }
  // 明星导师
  lecturerList(current,size){
    return this.request({
      url: 'lecturer/exclusiveServeList',
      data: {
        'size': size || 2,
        'current': current || 1,
      }
    })
  }
}
export {AboutModel}
